package cn.sykj.car.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 钱包余额日志
 * </p>
 *
 * @author duanzis
 * @since 2021-06-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CarUserWalletLog对象", description="钱包余额日志")
public class CarUserWalletLog extends Model<CarUserWalletLog> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "car_users.id")
    private Integer userId;

    private Integer totalWallet;

    private Integer wallet;

    private Integer integral;

    private Integer sendCash;

    private Integer sendAmount;

    @ApiModelProperty(value = "业务类型：10-充值 11-手动修改-增加 20-消费  21-手动修改-减少 22-提现 23-退卡")
    private Integer busType;

    @ApiModelProperty(value = "支付方式：config_payway.id(管理端不能选择线上充值）")
    private Integer payway;

    @ApiModelProperty(value = "类型：1-变更前  2-变更后")
    private Integer type;

    @ApiModelProperty(value = "变更金额")
    private Integer changeAmount;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "操作时间")
    private Date createTime;


    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String TOTAL_WALLET = "total_wallet";

    public static final String WALLET = "wallet";

    public static final String INTEGRAL = "integral";

    public static final String SEND_CASH = "send_cash";

    public static final String SEND_AMOUNT = "send_amount";

    public static final String BUS_TYPE = "bus_type";

    public static final String PAYWAY = "payway";

    public static final String TYPE = "type";

    public static final String CHANGE_AMOUNT = "change_amount";

    public static final String REMARK = "remark";

    public static final String CREATE_TIME = "create_time";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
